package com.dxysun.user.userservice;

import com.dxysun.user.demo02.EnableDxyRegister;
import com.dxysun.user.demo02.HelloService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;

@EnableDxyRegister
@EnableFeignClients(basePackages = "com.dxysun.service.api.clients")
@SpringBootApplication
public class SpringCloudUserServiceApplication
{

	public static void main(String[] args)
	{
		ConfigurableApplicationContext context = SpringApplication.run(SpringCloudUserServiceApplication.class, args);
		System.out.println(context.getBean(HelloService.class));
	}

}
